package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 新生报名大屏指标统计02(区域/学校排名)
 *
 * @author linyh
 * @since 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_bigscreen_zbtj02")
@Schema(name = "EduBigscreenZbtj02", title = "新生报名大屏指标统计02(区域/学校排名)", description = "新生报名大屏指标统计02(区域/学校排名)实体类")
public class EduBigscreenZbtj02 extends Model<EduBigscreenZbtj02> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "bigscreen02Id", title = "UID主键")
    @TableId(value = "bigscreen02_id", type = IdType.INPUT)
    private Long bigscreen02Id;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolNature", title = "学校性质0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "street", title = "所属街道")
    @TableField(value = "street")
    private String street;

    @Schema(name = "studentConCount", title = "计划招生数(学位数)")
    @TableField(value = "student_con_Count")
    private Integer studentConCount;

    @Schema(name = "studentEligCount", title = "适龄人数（报名数）")
    @TableField(value = "student_elig_Count")
    private Integer studentEligCount;

    @Schema(name = "year", title = "年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "localCount", title = "本地户籍人数")
    @TableField(value = "local_count")
    private Integer localCount;

    @Schema(name = "outsideCount", title = "外地户籍人数")
    @TableField(value = "outside_count")
    private Integer outsideCount;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.bigscreen02Id;
    }
}
